package my.state.headfirst.good;


public class GumballMachineTestDrive {
    public static void main(String[] args) {
        //糖果机
        GunballMachine gunballMachine = new GunballMachine(1);
        System.out.println(gunballMachine);

        gunballMachine.insertQuarter();
        gunballMachine.turnCrank();
        System.out.println(gunballMachine);

        gunballMachine.insertQuarter();
        gunballMachine.turnCrank();
        gunballMachine.insertQuarter();
        gunballMachine.turnCrank();
        System.out.println(gunballMachine);

    }
}
